<script setup>
import { computed } from 'vue'
import bannerImage from '@/assets/images/login-banner.png'
// import bannerImage from '@/assets/images/200.png'

const carouselItem = computed(() => [
  {
    slogan: "通用AIGC",
    subSlogan: "通用AIGC功能可增加用户粘性",
    image: bannerImage,
  },
  {
    slogan: "多模态",
    subSlogan: "多模态输出功能可增强用户体验",
    image: bannerImage,
  },
  {
    slogan: "数字人",
    subSlogan: "多模态输出功能可增强用户体验",
    image: bannerImage,
  },
  {
    slogan: "智能推荐",
    subSlogan: "多模态输出功能可增强用户体验",
    image: bannerImage,
  },
  {
    slogan: "虚拟试穿",
    subSlogan: "多模态输出功能可增强用户体验",
    image: bannerImage,
  }
])
</script>

<template>
  <div class="banner">
    <el-carousel class="banner-inner" height="500px">
      <el-carousel-item v-for="item in carouselItem" :key="item.slogan">
          <div :key="item.slogan" class="carousel-item">
            <div class="carousel-title">{{ item.slogan }}</div>
            <div class="carousel-sub-title">{{ item.subSlogan }}</div>
            <img class="carousel-image" :src="item.image" />
          </div>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<style lang="scss" scoped>
.banner {
  display: flex;
  align-items: center;
  justify-content: center;

  &-inner {
    flex: 1;
    height: 100%;
  }
}

.carousel {
  height: 100%;

  &-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-top: 20px;
  }

  &-title {
    color: #fff; // var(--color-fill-1);
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
  }

  &-sub-title {
    margin-top: 10px;
    color: #c7c7c7; //var(--color-text-3);
    font-size: 14px;
    line-height: 22px;
  }

  &-image {
    width: 320px;
    margin-top: 20px;
  }
}
</style>
